package com.whut.controller;

import com.whut.model.Equipverificationsystem;
import com.whut.service.EquipVerifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 鲁佳磊
 * @create 2021-03-05 14:32
 */

@RestController
@RequestMapping("/equipVerify")
public class EquipVerificationController {
    @Autowired
    private EquipVerifyService equipVerifyService;


    @ResponseBody
    @PostMapping("/getAllEquipVerification")
    public Object getAllEquipVerification(int curPage, int pageSize){
        return equipVerifyService.getAllEquipVerification(curPage,pageSize);
    }


    @ResponseBody
    @PostMapping("/addEquipVerificationRecordStep1")
    public Object addEquipVerificationRecordStep1(String value){
        return equipVerifyService.addEquipVerificationRecordStep1(value);
    }

    @ResponseBody
    @PostMapping("/addEquipVerificationRecordStep2")
    public Object addEquipVerificationRecordStep2(String value,String id){
        return equipVerifyService.addEquipVerificationRecordStep2(value,id);
    }

    @ResponseBody
    @PostMapping("/addEquipVerificationRecordStep3")
    public Object addEquipVerificationRecordStep3(String value,String id){
        return equipVerifyService.addEquipVerificationRecordStep3(value,id);
    }


    @ResponseBody
    @PostMapping("/updateRecordDisuse")
    public Object updateRecordDisuse(String id){
        return equipVerifyService.updateRecordDisuse(id);
    }

    @ResponseBody
    @PostMapping("/deleteSystemRecord")
    public Object deleteRecord(String id){
        return equipVerifyService.deleteRecord(id);
    }

    @ResponseBody
    @PostMapping("/updateSystemRecord")
    public Object updateSystemRecord(Equipverificationsystem equipverificationsystem){
        return equipVerifyService.updateSystemRecord(equipverificationsystem);
    }
    @ResponseBody
    @PostMapping("/getProjectName")
    public Object getProjectName(String start,String end,String searchValue,String pageNum){
        return equipVerifyService.getProjectName(start,end,searchValue,pageNum);

    }
    @ResponseBody
    @PostMapping("/getAllVerifyResultByProjectId")
    public Object getAllVerifyResultByProjectId(String projectId){
        return equipVerifyService.getAllVerifyResultByProjectId(projectId);

    }





}
